#include <unistd.h>
#include <stdio.h>
#include <iostream>
using namespace std;

int main()
{
  int ret = fork();
  if (ret == 0)
  {
    // child
    printf("im child my pid is:%d my ppid is:%d\n",getpid(),getppid());
  }
  else 
  {
    // father
    printf("im father my pid is:%d my ppid is:%d\n",getpid(),getppid());
    sleep(1);
  }

  return 0;
}
